package cn.starlightsoftware.sherly.controller.admin.permission.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;

import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.REQUIRED;

/**
 * @author 谷子毅
 * @date 2024/4/28
 */
@Data
public class RoleSaveReqVO {

    @Schema(description = "角色编号", example = "1")
    private String roleId;

    @Schema(description = "角色名称", requiredMode = REQUIRED, example = "管理员")
    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    @Schema(description = "角色代码", requiredMode = REQUIRED, example = "admin")
    @NotBlank(message = "角色代码不能为空")
    private String roleCode;

    @Schema(description = "角色描述", example = "拥有最高权限")
    private String description;

}
